/**
 * Project Name:kany-project-blog-web
 * File Name:IndexController.java
 * Package Name:me.kany.project.blog.controller
 * Date:2016年9月20日下午10:01:32
 * Copyright (c) 2016, Jason.Wang All Rights Reserved.
 */
package me.kany.project.blog.controller;


import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName:IndexController<br/>
 * Function: 首页控制器<br/>
 * Date:2016年9月20日下午10:01:32<br/>
 * 
 * @author Jason.Wang
 * @version 1.0
 * @since JDK1.7
 * @see
 */
@Controller
@RequestMapping("/")
public class IndexController {
	
	@RequestMapping("index")
	public String execute(HttpServletRequest request) {
		List<String> list = new ArrayList<String>();
		for (int i = 0; i < 8; i++) {
			list.add("数据"+(i+1));
		}
		//request.getSession().setAttribute("session_sys_admin", "223");
		request.setAttribute("list", list);
		return "index";
	}
}
